package com.pactera.miyuangroup.db.mapper;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.pactera.miyuangroup.db.entity.Replenishment;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.pactera.miyuangroup.db.entity.VendorInfo;
import com.pactera.miyuangroup.vo.response.app.AppReplenishmentRes;
import com.pactera.miyuangroup.vo.response.app.AppSelectVendorPassagewayRes;
import com.pactera.miyuangroup.vo.response.web.ReplenishmentRes;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * <p>
 * 补货记录 Mapper 接口
 * </p>
 *
 * @author WangWu
 * @since 2018-04-13
 */
public interface ReplenishmentMapper extends BaseMapper<Replenishment> {

    List<ReplenishmentRes> selectReplenishmentList(Pagination page, @Param("ew")Wrapper ew);

    List<AppReplenishmentRes> appSelectReplenishmentList(Pagination pagination, @Param("ew")Wrapper ew);

    AppReplenishmentRes appSelectVendorInfo(@Param("ew")Wrapper wrapper);

    List<VendorInfo> selectVendorByUserID(@Param("ew")Wrapper wrapper);


    List<AppSelectVendorPassagewayRes> appSelectVendorPassageway(@Param("ew")Wrapper wrapper);
}
